<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
</head>
<body>
    <script >
      // ES6 引入新的声明字符串的方式，反引号 ``


      // 1.声明
      let str = `2sdfasdf`;
      console.log(str,typeof str);

      // 2 内容中可以直接出现换行符
      let str1 = `<ul>
                    <li>123</li>
                  </ul>`;
      // 变量拼接
      let loveset = 'pop';
      let out = `${loveset} yyds`;
                  
    </script>
</body>

</html>